package dao.impl;

import dao.Supplier_white_listDao;
import pojo.Supplier_white_list;
import util.DBHelper;

public class Supplier_white_listDaoimpl implements Supplier_white_listDao {
    DBHelper db=new DBHelper();
    @Override
    public int insertSupplier_white_list(Supplier_white_list supplier_white_list) {
         String sql="insert into  supplier_white_list values(?,?,?,?,?)";
        return db.updateTable(sql,supplier_white_list.getId(),supplier_white_list.getEnterprise_id(),supplier_white_list.getSupperlier_id(),supplier_white_list.getSupperlier_level(),supplier_white_list.getUpdate_date());
    }

    @Override
    public int deleteSupplier_white_list(Supplier_white_list supplier_black_list) {
        return 0;
    }

    @Override
    public int updateSupplier_white_list(Supplier_white_list supplier_white_list) {
        return 0;
    }
}
